package com.hd.hdxgddcommon.utils;

import com.hd.hdxgddcommon.utils.sequence.Sequence;

import java.util.UUID;



/**
 * <p>
 * id生成工具
 * </p>
 *
 * @author Administrator
 * @since 2018-10-30
 */
public class GenerateIdUtils {

    private static Sequence sequence = new Sequence(1, 0);

    public static String get32Varchar() {
        return MathUtil.getMD5(UUID.randomUUID().toString());
    }

    public static long get17AutoId() {
        return sequence.nextId();
    }


}
